﻿using System.Web;
using System.Web.Optimization;

namespace Nikola
{
    public class BundleConfig
    {
        // 有关 Bundling 的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            //设置压缩css和js
            BundleTable.EnableOptimizations = true;

            #region "使用twitter出品的Bootstrap框架加载的css和js"


            bundles.Add(new StyleBundle("~/bootstrap/css/css").Include("~/bootstrap/css/bootstrap-responsive.css", "~/bootstrap/css/bootstrap.css", "~/bootstrap/css/datetimepicker.css"));

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/bootstrap/jquery/jquery-1.7.1.js")); 

            bundles.Add(new ScriptBundle("~/bundles/logic").IncludeDirectory("~/bootstrap/logic/", "*.js"));

            bundles.Add(new ScriptBundle("~/bundles/js").Include("~/bootstrap/js/bootstrap.js",
                "~/bootstrap/js/bootstrap-datetimepicker.js",
                "~/bootstrap/js/dateFormat.js"));

            bundles.Add(new ScriptBundle("~/bundles/autocomplete").Include("~/bootstrap/js/bootstrap-autocomplete.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryajaxsubmit").Include("~/bootstrap/jquery/jquery.form.js"));


            #endregion
        }
    }
}